<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>角色列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong class="icon-reorder"> 角色信息列表</strong>
		</div>
		<div class="padding border-bottom">
			<ul class="search" style="padding-left:10px;">
				<li><a class="button border-main"
					onclick="JavaScript:history.go(-1)"> 返回</a></li>

			</ul>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th>角色编号</th>
				<th>角色名称</th>
			</tr>
			<%
				String roleId = request.getParameter("roleId");
				String pageNo = request.getParameter("pageNo");
				int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
				RoleDao roleDao = new RoleDao();
				String sql = "select * from role where roleId='" + roleId + "'";
				Object[] params = {};
				Page pageBean = roleDao.queryOjectsByPage(sql, params, p,
						Constant.ROW);
			%>
			<%
				for (int i = 0; i < pageBean.getDatas().size(); i++) {

					Role model = (Role) pageBean.getDatas().get(i);
			%>
			<tr>
				<td><%=model.getRoleId()%></td>
				<td><%=model.getRoleName()%></td>
			</tr>
			<%
				}
			%>
		</table>
	</div>
	</form>
</body>
</html>
